-- GENERATED SPELL FOR [Cauldron Lord Soulwrath] --


function spell0_11078(pUnit, Event) --@Putrid Stench,Self--
pUnit:FullCastSpellOnTarget(12946,pUnit)
pUnit:RegisterEvent('Sorts_11078', 10301, 1)
end

function spell1_11078(pUnit, Event) --@Uppercut,n/a--
pUnit:FullCastSpellOnTarget(10966,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11078', 577, 1)
end

function Sorts_11078(pUnit, Event)
local choix_sorts_11078 = math.random(0, 1)
if choix_sorts_11078 == 0 then
pUnit:RegisterEvent('spell0_11078', 1, 1)
end
if choix_sorts_11078 == 1 then
pUnit:RegisterEvent('spell1_11078', 1, 1)
end
end

function mob11078_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11078', math.random(1500, 3000), 1)
end

function mob11078_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11078_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11078_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11078, 1, 'mob11078_Action')
RegisterUnitEvent(11078, 2, 'mob11078_Leave')
RegisterUnitEvent(11078, 3, 'mob11078_Kill')
RegisterUnitEvent(11078, 4, 'mob11078_Die')
